package mapEditor.events
{
	import flash.events.Event;

	public class MapEditorEvent extends Event
	{
		/**
		 *操作工具改变 
		 */		
		public static const TOOL_TYPE_CHANGE:String = "toolTypeChange";
		
		/**
		 *操作模块改变 
		 */		
		public static const MODULE_TYPE_CHANGE:String = "moduleTypeChange";
		
		/**
		 *物件编辑下属操作模块改变 
		 */		
		public static const RES_MODULE_TYPE_CHANGE:String = "resModuleTypeChange";
		
		/**
		 *场景编辑下属操作模块改变 
		 */		
		public static const SCENE_MODULE_TYPE_CHANGE:String = "sceneModuleTypeChange";		
		
		/**
		 *打开一个现有的地图 
		 */		
		public static const OPEN_MAP:String = "openMap";
		
		/**
		 *选中一个资源项
		 */		
		public static const ASSET_ITEM_SELECTED:String = "assetItemSelected";		
		
		/**
		 *选中一个单项
		 */		
		public static const RES_ITEM_ITEM_SELECTED:String = "resItemItemSelected";
		
		/**
		 *选中一个正在编辑中的单项中的资源项
		 */		
		public static const RES_ITEM_ITEM_ASSET_SELECTED:String = "resItemItemAssetSelected";
		
		/**
		 *选中一个地形地块项 
		 */		
		public static const MAP_TERRAIN_TILE_SELECTED:String = "mapTerrainTileSelected";		
		
		
		/**
		 *资源项属性发生改变
		 */		
		public static const ASSET_ITEM_PROPERTY_CHANGE:String = "assetItemPropertyChange";
		
		/**
		 *单项属性发生改变
		 */		
		public static const RES_ITEM_PROPERTY_CHANGE:String = "resItemPropertyChange";		
		
		/**
		 *属性值发生改变
		 */		
		public static const PROPERTY_VALUE_CHANGE:String = "propertyValueChange";		
		
		/**
		 *编辑中
		 */		
		public static const EDITING:String = "editing";
		
		/**
		 *编辑中
		 */		
		public static const SELECTED:String = "selected";
		
		/**
		 *资源组有发生改变
		 */
		public static const ASSET_GROUP_CHANGE:String = "assetGroupChange";
		
		/**
		 *项有发生改变
		 */
		public static const RES_CHANGE:String = "resChange";		
		
		/**
		 *移除单项中的资源项
		 */
		public static const RES_ITEM_REMOVE_ITEM:String = "resItemRemoveItem";
		
		/**
		 *增加单项中的资源项
		 */
		public static const RES_ITEM_ADD_ITEM:String = "resItemAddItem";
		
		/**
		 *地图寻路网络发生改变
		 */
		public static const FIND_PATH_NODES_CHANGE:String = "findPathNodesChange";
		
		/**
		 * 事件传递的数据 
		 */		
		private var _data:Object;
		
		/**
		 * 事件传递的数据
		 */		
		public function get date():Object
		{
			return _data;
		}
		
		public function MapEditorEvent(type:String, data:Object=null)
		{
			super(type, data);
			_data=data;
		}
	}
}